package com.w.wx.mapper;

import cn.hutool.core.date.DateTime;
import com.w.wx.domain.CommentsInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.sql.Timestamp;
import java.util.ArrayList;

@Mapper
@Component
public interface CommentsInfoMapper {
    int deleteByPrimaryKey(Integer inId);

    int insert(CommentsInfo record);

    CommentsInfo selectByPrimaryKey( Integer inId);

    ArrayList<CommentsInfo> selectAll(int gid);

    int updateByPrimaryKey(@Param("inId") Integer inId, @Param("likeNum") Integer likeNum);

    CommentsInfo selectByOpenidAndTime(String fromOpenid);
}